If your application needs to access multiple resources as part of the same operation, you need two-phase commit transactions.
如果您的应用程序在同一个操作中需要访问多种资源,您就要使用两阶段提交事务。
Because we have a Two-Phase-Commit operation this value has to be set to false.
因为我们具有一个两阶段提交操作,所以必须将该值设置为false。
The second argument in method commit() distinguishes between a One-Phase or Two-Phase-Commit operation.
方法 commit() 中的第二个参数区分单阶段或两阶段提交操作。
应用推荐